package com.cyz.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.cyz.mapper.TypeMapper;
import com.cyz.pojo.Type;
import com.cyz.service.TypeService;

/**
 * @author 陈雅珠
 * 考试类型服务层实现类
 */
@Service("typeServiceImpl")
public class TypeServiceImpl implements TypeService {
	
	@Resource(name="typeMapper")
	private TypeMapper typeMapper;

	/**
	 * 获取所有考试类型
	 * @return 考试类型列表
	 */
	@Override
	public List<Type> getAllType() {
		return typeMapper.getAllType();
	}

	@Override
	public Type getTypeById(Integer typeId) {
		// TODO Auto-generated method stub
		return typeMapper.getTypeById(typeId);
	}

}
